package com.jeesite.modules.dataScreen.service;

import com.jeesite.modules.dataScreen.enums.DataTypeEnum;
import com.jeesite.modules.dataScreen.web.vo.roadfreight.RoadFreightVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


/**
 * @author machenzhi
 * @date 2024/06/29 13:27
 */
@Service
public class TransportService {

    @Autowired
    private IndustryExecutor industryExecutor;

    public RoadFreightVo road() {
        RoadFreightVo roadFreightVo = new RoadFreightVo();
        industryExecutor.execute(roadFreightVo, DataTypeEnum.UNREAL_TIME.getCode());
        industryExecutor.execute(roadFreightVo, DataTypeEnum.REAL_TIME.getCode());
        return roadFreightVo;
    }

    public RailWaterContainerVo water() {
        RailWaterContainerVo railWaterContainerVo = new RailWaterContainerVo();
        industryExecutor.execute(railWaterContainerVo, DataTypeEnum.UNREAL_TIME.getCode());
        return railWaterContainerVo;

    }
}
